<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>使用script标签构建组件</title>
	<script src="vue.js"></script>
</head>
<body>
<div id="app">
  <my-component></my-component>
</div>
<script type="text/x-template" id="content">
  <div>欢迎登录</div>  
</script>
<script>
  // 创建根实例
  var vm=new Vue({
    el: '#app',
    components: {
        'app-component': {
            template: '#content'
         }
      }  
  })
</script>
</body>
</html>
